﻿@{ 
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>视频查看</title>
    <link href="/layuimini-v2/Play/Css/index.css" rel="stylesheet" />
    <script type="text/javascript" src="/layuimini-v2/Play/Javascript/index.js"></script>

</head>
<body>
    <div id="top">
        <input type="text" id="text_input" name="name" value="" />
        <input type="button" id="button_input" name="name" value="选择文件夹" />
        <input type="file" id="file_input" onchange="Add_unload(this)" webkitdirectory />
    </div>
    <div id="down">
        <div id="files">
            <!--<div class="file">
                <img src="jpeg.png" alt="Alternate Text" />
                <span>文件名</span>
            </div>-->
        </div>
        <div id="file_preview">

        </div>


    </div>

    <script>
        file_input.onchange = function (e) {
            var path_text = document.getElementById('text_input');
            var image2 = document.getElementById('image2');
            var filesDiv = document.querySelector('#files');

            var files = this.files;
            var table = {};
            var Html = "";
            for (var i = 0; i < files.length; i++) {
                var f = files[i];
                var dt = new Date(f.lastModified);

                table[i] = {
                    path: f.webkitRelativePath,
                    size: f.size,
                    modified: dt.toLocaleString(),
                    type: f.type,
                    PUSH: dt.getHours,
                };

                var URL = window.URL || window.webkitURL || window.mozURL;
                var SRC = URL.createObjectURL(files[i]);


                Html += show(table[i], SRC);

            }
            filesDiv.innerHTML = Html;
            console.table(table);
            Date.table=table;

            //console.log(table);
        };
    </script>

</body>
</html> 